function nextPage(grid,url){
	var pg = grid.datagrid("getPager");
	if(pg){
		$(pg).pagination({
			   pageSize: 1,
			   pageList: [1,10,15],
		       onRefresh:function(pageNumber,pageSize){
		    	   grid.datagrid('loading');
		    	   loadAndDisplayData(grid,url,pageNumber,pageSize);
		    	   grid.datagrid('loaded');
		        },
		       onChangePageSize:function(){
		    	   grid.datagrid('loading');
		    	   grid.datagrid('loaded');
		        },
		       onSelectPage:function(pageNumber,pageSize){
		    	   grid.datagrid('loading');
		    	   loadAndDisplayData(grid,url,pageNumber,pageSize);
		    	   grid.datagrid('loaded');
		        }
		   });
	}
}